//
//  AXFPayBottomTableViewCell.m
//  AIXF
//
//  Created by Macx on 2017/7/13.
//  Copyright © 2017年 Macx. All rights reserved.
//

#import "AXFPayBottomTableViewCell.h"

@interface AXFPayBottomTableViewCell ()
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *countLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;

@end
@implementation AXFPayBottomTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(AXFHomeFirstSellModel *)model
{
    _model = model;
    _nameLabel.text = model.name;
    _countLabel.text = [NSString stringWithFormat:@"X%d",model.count];
    CGFloat totalPrice = [model.price floatValue] * model.count;
    _priceLabel.text = [NSString stringWithFormat:@"%.2f",totalPrice];
    
}
@end
